package org.dtrd.modules.record.service;

import org.dtrd.modules.record.entity.bean.SleepBean;
import org.dtrd.modules.record.entity.bean.SleepChart;
import org.dtrd.modules.record.entity.bean.SleepInfo;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninSleep;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author QR
 * @since 2021-11-05
 */
public interface ISleepRecordService extends IRecordService<DtrdEntRdSigninSleep> {

    /**
     * 更新或保存睡眠记录
     */
    boolean saveOrUpdateSleepRecord(SleepBean sleepBean);

    /**
     * 分页获取指定时间访问内睡眠信息
     */
    SleepInfo getSleepRecordListByDateRange(Integer patientId, Integer pageNum, Integer pageSize, String startDate, String endDate);

    /**
     * 获取睡眠曲线
     */
    SleepChart getSleepChartByDateRange(Integer patientId, String startDate, String endDate);
}
